﻿@using QuocHoi_TV_Frontend.Models;
@model QuocHoi_TV_Frontend.Models.News
<div class="tile_monitor">
    <p>@NewsHelper.Sliptsubject(Model.NewsTitle, 40)</p>
</div>
<div class="monitor_tv">
    <video width="521" height="323" id="player2" controls="controls" preload="none">
	    <!-- MP4 source must come first for iOS -->
	    <source type="video/mp4" src="http://seagames.radiovietnam.vn/Upload/11y/SeaGames27.mp4" />	                
	    <!-- Fallback flash player for no-HTML5 browsers with JavaScript turned off -->
	    <object width="640" height="360" type="application/x-shockwave-flash" data="/Content/mediaelement/flashmediaelement.swf"> 		
		    <param name="movie" value="/Content/mediaelement/flashmediaelement.swf" /> 
		    <param name="flashvars" value="controls=true&amp;file=http://seagames.radiovietnam.vn/Upload/11y/SeaGames27.mp4" /> 		
		    <!-- Image fall back for non-HTML5 browser with JavaScript turned off and no Flash player installed -->
		                
	    </object> 	
    </video>
</div>
<div class="sharelink">
    <div class="bg_sl"></div>
    <div id="accordion-content">
        <div class="embed">
            <input id="accordion-1" name="accordion" type="checkbox" />
            <label for="accordion-1">Mã nhúng</label>
            <section class="tab">
                <p>Code Mã nhúng</p>
                <div class="decor-txt-area">
                    <form action="#">
                        <textarea id="tvVideoEmbed" onclick="SelectAll('tvVideoEmbed');" rows="3" cols="30">
										<iframe frameborder="0" width="640" height="360" style="border:none;" src="http://www.channelnewsasia.com/starterkit/servlet/fragment?id=920444&view=embed"/>
									</textarea>
                    </form>
                </div>
            </section>
        </div>
        <div class="link">
            <input id="accordion-2" name="accordion" type="checkbox" />
            <label for="accordion-2">Link</label>
            <section class="tab">
                <p>url</p>
                <div class="url-row">
                    <input id="tvVideoURL" class="txt-field" type="text" value="http://www.channelnewsasia.com/tv/tvshows/acrossborders/north-korea-china/920444.html" onclick="SelectAll('tvVideoURL');">
                </div>
            </section>
        </div>
        <div class="share">
            <input id="accordion-3" name="accordion" type="checkbox" />
            <label for="accordion-3">Chia sẻ</label>
            <section class="tab">
                <div class="share-row">
                    <div class="side-block-holder">
                        <div class="ttl-side">
                            <h2>CHIA SẺ VIDEO
                            </h2>
                        </div>
                        <p>Là người đầu tiên chia sẻ video này với tất cả bạn bè của bạn</p>
                        <ul>
                            <li>
                                <a href="">
                                    <img src="/images/bgqhtv/icon_facebook.png" width="20" height="20">
                                </a>
                            </li>
                            <li>
                                <a href="">
                                    <img src="/images/bgqhtv/icon_twiter.png" width="20" height="20">
                                </a>
                            </li>
                            <li>
                                <a href="">
                                    <img src="/images/bgqhtv/icon_Google.png" width="20" height="20">
                                </a>
                            </li>
                            <li>
                                <a href="">
                                    <img src="/images/bgqhtv/icon_likedln.png" width="20" height="20">
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </section>
        </div>
    </div>
    <a class="link-add" href="#" clicked="no">Thêm vào danh sách</a>
</div>
<script type="text/javascript">
    function loadVideo(id, cateId) {
        var APIURL = "/Video/Show";
        $.ajax({
            type: "POST",
            url: APIURL,
            data: { 'newsID': id },
            success: function (data) {
                $('#ShowVideo').html(data);
            }
        });
    }
</script>